#!/usr/bin/env python    
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-    

# Written by Zhang Di <http://www.jondy.net/> .    
# 2009-5-17 .    
#     
import crypt  
import sys  

if len(sys.argv) == 3:  
    print("%s:%s" % (sys.argv[1],crypt.crypt(sys.argv[2],  sys.argv[2])))  
